﻿using System;
using System.Collections.Generic;
using System.Text;
using Castle.ActiveRecord;
using Castle.Components.Validator;
using MiragePWF.NH.Validation;
using Wolfut.MirageEE.Kernal.Common;
using Wolfut.MirageEE.Domain.CommonUtilities;

namespace Wolfut.MirageEE.Domain.Products
{
    /// <summary>
    /// 商品扩展信息
    /// </summary>
    [ActiveRecord("PRODUCT_EXS")]
    public class ProductEx : PersistentObjectWithGuid
    {
        #region 扩展属性1
        private string productEx1 = string.Empty;
        /// <summary>
        /// 扩展属性1
        /// </summary>
        [Property("PRODUCT_EX1")]
        [ValidateLength(0, 200, "扩展属性1超长！")]
        public virtual string ProductEx1
        {
            get
            {
                return productEx1;
            }
            set
            {
                productEx1 = value;
            }
        }
        #endregion

        #region 扩展属性2
        private string productEx2 = string.Empty;
        [Property("PRODUCT_EX2")]
        [ValidateLength(0, 200, "扩展属性2超长！")]
        public virtual string ProductEx2
        {
            get
            {
                return productEx2;
            }
            set
            {
                productEx2 = value;
            }
        }
        #endregion

        #region 扩展属性3
        private string productEx3 = string.Empty;
        [Property("PRODUCT_EX3")]
        [ValidateLength(0, 200, "扩展属性3超长！")]
        public virtual string ProductEx3
        {
            get
            {
                return productEx3;
            }
            set
            {
                productEx3 = value;
            }
        }
        #endregion

        #region 扩展属性4
        private string productEx4 = string.Empty;
        [Property("PRODUCT_EX4")]
        [ValidateLength(0, 200, "扩展属性4超长！")]
        public virtual string ProductEx4
        {
            get
            {
                return productEx4;
            }
            set
            {
                productEx4 = value;
            }
        }
        #endregion

        #region 扩展属性5
        private string productEx5 = string.Empty;
        [Property("PRODUCT_EX5")]
        [ValidateLength(0, 200, "扩展属性5超长！")]
        public virtual string ProductEx5
        {
            get
            {
                return productEx5;
            }
            set
            {
                productEx5 = value;
            }
        }
        #endregion 
       
        #region 扩展属性6
        private string productEx6 = string.Empty;
        [Property("PRODUCT_EX6")]
        [ValidateLength(0, 200, "扩展属性6超长！")]
        public virtual string ProductEx6
        {
            get
            {
                return productEx6;
            }
            set
            {
                productEx6 = value;
            }
        }
        #endregion  

        #region ProductID

        private string productID = string.Empty;
        /// <summary>
        /// ProductID
        /// </summary>
        [Property("PRODUCT_ID")]
        [ValidateLength(0, 200, "ProductID超长！")]
        public virtual string ProductID
        {
            get
            {
                return productID;
            }
            set
            {
                productID = value;
            }
        }
        #endregion  
    }
}
